package com.multithreading.Thread_002;

/**
 * @author zx
 * @version 1.0
 * @package_name: com.multithreading.Thread_002
 * @date 2024/5/13 17:30
 */
public class MyThread implements Runnable {
    @Override
    public void run() {
        for (int i = 1; i <= 100; i++) {
            //获取当前线程对象
            System.out.println(Thread.currentThread().getName() + "线程执行中--" + i);
        }
    }
}
